<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link rel="stylesheet" href="component/layui/css/layui.css" />
		<link rel="stylesheet" href="admin/css/pearTab.css" />
		<link rel="stylesheet" href="admin/css/pearTheme.css" />
		<link rel="stylesheet" href="admin/css/pearLoad.css" />
		<link rel="stylesheet" href="admin/css/pearFrame.css" />
		<link rel="stylesheet" href="admin/css/pearAdmin.css" />
		<link rel="stylesheet" href="admin/css/pearNotice.css" />
		<link rel="stylesheet" href="admin/css/pearSocial.css" />
		<link rel="stylesheet" href="admin/css/pearMenu.css" />
		<style id="pearone-bg-color"></style>
	</head>
	<body class="layui-layout-body pear-admin">
		<!-- 布局框架 -->
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header">
				<ul class="layui-nav layui-layout-left">
					<li class="collaspe layui-nav-item layui-hide-xs"><a href="#" class="layui-icon layui-icon-shrink-right"></a></li>
					<li class="refresh layui-nav-item"><a href="#" class="layui-icon layui-icon-refresh-1"></a></li>
				</ul>
				<div id="control" class="layui-layout-control"></div>
				<ul class="layui-nav layui-layout-right">
					<li class="layui-nav-item layui-hide-xs"><a href="#" class="fullScreen layui-icon layui-icon-screen-full"></a></li>
<!-- 					<li class="layui-nav-item layui-hide-xs"><a href="http://www.pearadmin.cn" class="layui-icon layui-icon-website"></a></li> -->
					<li class="layui-nav-item layui-hide-xs" id="headerNotice"></li>
					<li class="layui-nav-item" lay-unselect="">
						<a href="javascript:;"><img src="admin/images/avatar.jpg" class="layui-nav-img">羡鸿飞</a>
						<dl class="layui-nav-child">
							<dd><a href="javascript:;" class="pearson">个人信息</a></dd>
							<dd><a href="javascript:;">安全配置</a></dd>
							<dd><a href="javascript:;">打开百度</a></dd>
							<dd><a href="javascript:;" id="clear_login">注销登陆</a></dd>
						</dl>
					</li>
					<li class="setting layui-nav-item"><a href="#" class="layui-icon layui-icon-more-vertical"></a></li>
				</ul>
			</div>
			<div class="layui-side layui-bg-black">
				<div class="layui-logo">
					<img class="logo" src="admin/images/logo.png" />
					<span class="title">个人综合管理系统</span>
				</div>
				<div class="layui-side-scroll">
					<div id="sideMenu"></div>
				</div>
			</div>
			<div class="layui-body">
				<div id="content"></div>
			</div>
		</div>

		<!-- 移动端 遮盖层 -->
		<div class="pear-cover"></div>

		<!-- 初始加载 动画-->
		<div class="loader-main">
			<div class="loader"></div>
		</div>

		<!-- 聊天组件 -->
		<div id="social" class="layui-hide-xs"></div>

		<!-- 移动端 的 收缩适配 -->
		<div class="collaspe pe-collaspe layui-hide-sm">
			<i class="layui-icon layui-icon-shrink-right"></i>
		</div>
		<script src="component/layui/layui.js"></script>
		<script src="https://cdn.staticfile.org/jquery/3.4.0/jquery.min.js"></script>
		<script src="https://cdn.staticfile.org/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
		
		<script>
			layui.use(['pearAdmin', 'jquery', 'pearSocial', 'layer'], function() {
				var pearAdmin = layui.pearAdmin;
				var $ = layui.jquery;
				var layer = layui.layer;
				var pearSocial = layui.pearSocial;
				var pearAuth = layui.pearAuth;
				if($.cookie('saltID') === null || $.cookie('saltID') === undefined || $.cookie('saltID') === ''){
					window.open("./login.html", "_self")
				}
				
				$("#clear_login").click(function(){
					$.cookie('saltID', '', { expires: -1 }); // 删除 cookie
					window.open("./login.html", "_self")
				});
				
				
				var config = {
					keepLoad: 1500, // 主 页 加 载 过 度 时 长 可为 false
					muiltTab: true, // 是 否 开 启 多 标 签 页 true 开启 false 关闭
					control: false, // 是 否 开 启 多 系 统 菜 单 true 开启 false 关闭
					theme: "dark-theme", // 默 认 主 题 样 式 dark-theme 默认主题 light-theme 亮主题
					index: 'view/console/console1.html', // 默 认 加 载 主 页
					data: 'admin/data/menu.json', // 菜 单 数 据 加 载 地 址
					select: '0',                 // 默 认 选 中 菜 单 项
					notice: 'admin/data/notice.json', // 消 息 列 表 数 据
					auth: 'admin/data/permission.json'  // 前端权限限制，false 关闭该功能
				};

                var setting = {
                	elem: 'social'
                }
                
				pearSocial.render(setting);
				pearAdmin.render(config);

				
			})
		</script>
		<!-- 新 增 百 度 统 计  ( 可 移 除 )-->
		<script>
			var _hmt = _hmt || [];
			(function() {
				var hm = document.createElement("script");
				hm.src = "https://hm.baidu.com/hm.js?6ab27a14480b19bc9ce3eef146674287";
				var s = document.getElementsByTagName("script")[0];
				s.parentNode.insertBefore(hm, s);
			})();
		</script>
	</body>
</html>
